WeldModuleResourceLoader{
  this.module=module;
}
classForName{
  try {
    if (classes.containsKey(name)) {
      return classes.get(name);
    final Class<?> clazz=module.getClassLoader().loadClass(name);
    classes.put(name,clazz);
    return clazz;
 catch (  NoClassDefFoundError e) {
    throw new ResourceLoadingException(e);
catch (  ClassNotFoundException e) {
    throw new ResourceLoadingException(e);
    throw new ResourceLoadingException(e);
}
addAdditionalClass{ }
getResource{
  try {
    return module.getClassLoader().getResource(name);
 catch (  Exception e) {
    throw new ResourceLoadingException(e);
}
getResources{
  try {
    final HashSet<URL> resources=new HashSet<URL>();
    Enumeration<URL> urls=module.getClassLoader().getResources(name);
    while (urls.hasMoreElements()) {
    return resources;
 catch (  Exception e) {
    throw new ResourceLoadingException(e);
}
cleanup{ }
